package com.pets.springboot_petshop.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author: wxk
 * @Email: 2089967794@qq.com
 * @Date: 2024/10/15 上午11:41 周二
 * @Description: 订单实体类
 */
@AllArgsConstructor
@Data
@NoArgsConstructor
public class Order implements Serializable {
    private int id;
    private int user_id;
    private int useraddress_id;
    private String ordernumber;
    private int orderproduct_id;
    private BigDecimal total_amount;//总价格
    private String status;
    private String email;
    private String membershiptype_name;
    private String name;
    private String tk_status;
    private String message;
    private BigDecimal discount;
    private String product_name;
    private String username;
    private String payment_method;//支付方式
    private LocalDateTime create_time;
    private LocalDateTime update_time;
    private String phone;
    private String address_line1;
    private String address_line2;
    private List<Orderproduct> orderProducts; // 关联订单产品
}
